'''
Created on Apr 14, 2011

@author: yc30v1m
'''
from plugins.Log import Log

class TestCase(object):
    '''
    classdocs
    '''
    tcid = None
    tcScript = ''
    log = None
    
    @staticmethod
    def supportedExecutionTypes(tcTypes):
        """
        Mandatory method in every inherited class
        This Method has the Type of Execution it handles
        Such as CountValidation / Api Validation / Pws etc
        """
        return False

    def __init__(self, TestCaseId, scriptReader):
        self.tcid = TestCaseId
        self.tcScript = scriptReader
        self.log = Log().getLogger(self.__class__)
    
    def executeTestSteps(self):
        self.getTestCaseSections()
        
    def getTestCaseSections(self):
        pass
        
        
    def getOptionsFromSection(self,scriptSection,scriptOption):
        return self.tcScript.getOptionsFromSection("SECTION2", "query")